package com.beifu.manager.dao;

import com.beifu.manager.model.AssetIn;
import com.beifu.manager.model.AssetInExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface AssetInMapper {
    int countByExample(AssetInExample example);

    int deleteByExample(AssetInExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AssetIn record);

    int insertSelective(AssetIn record);

    List<AssetIn> selectByExample(AssetInExample example);

    AssetIn selectByPrimaryKey(Long id);
    
    AssetIn selectByAssetInId(Long id);

    int updateByExampleSelective(@Param("record") AssetIn record, @Param("example") AssetInExample example);

    int updateByExample(@Param("record") AssetIn record, @Param("example") AssetInExample example);

    int updateByPrimaryKeySelective(AssetIn record);

    int updateByPrimaryKey(AssetIn record);
    
    /**
     * 获取资产列表分页数据
     * @param i
     * @param limit
     * @param example
     * @return
     */
	List<AssetIn> getAssetInPage(@Param("start") int start, @Param("pageNum") int pageNum,  @Param("example")AssetInExample example);
	
	/**
	 * 创建备品入库单
	 * @param assetIn
	 */
	void insertAndGetId(AssetIn assetIn);
	
	/**
	 * 批量删除备品入库单
	 * @param ids
	 */
	void batchDelAssetIn(String[] ids);
}